package com.define.ssh.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.GenericGenerator;

/**
 * UserRoamingdata entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_roamingdata", uniqueConstraints = { @UniqueConstraint(columnNames = {
		"userid", "contenttype" }) })
public class UserRoamingdata implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer userid;
	private String contenttype;// '漫游数据类型 1：常用联系人，2：常用部门，3：关注人',
	private String content;
	private Long updatetime;// '更新时间'

	// Constructors

	/** default constructor */
	public UserRoamingdata() {
	}

	// Property accessors
	@GeneratedValue(generator = "generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "contenttype", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getContenttype() {
		return this.contenttype;
	}

	public void setContenttype(String contenttype) {
		this.contenttype = contenttype;
	}

	@Column(name = "content", unique = false, nullable = false, insertable = true, updatable = true, length = 8000)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "updatetime")
	public Long getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Long updatetime) {
		this.updatetime = updatetime;
	}

}